﻿@model SchoolCommunicationSystem.Models.SMSClassView
@{
    ViewBag.Title = "SendSMS";
}

@using (Html.BeginForm())
{
    <table>
        <thead>
            <tr>
                <th>Tên lớp</th>
                <th>Action</th>
                <th>Action</th>
            </tr>
        </thead>
        <tbody>
            @foreach (var item in Model.SMS)
            {
                <tr>
                    <td>@item.learnerName</td>
                    <td>
                        @item.phone
                    </td>
                    <td>
                        @item.smsContent
                    </td>
                </tr>
           
            }
        </tbody>
    </table>
            for (int i = 0; i < Model.SMS.Count(); i++)
            { 
    @Html.HiddenFor(model => model.SMS[i].learnerName)
    @Html.HiddenFor(model => model.SMS[i].phone)
    @Html.HiddenFor(model => model.SMS[i].smsContent)
    
            }
    <input type="submit" value="Send">
}